package com.zhuangjie.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用于搜索订单信息
 * </p>
 *
 * @author zhuangjie
 * @since 2024-03-31
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("order_for_search")
@ApiModel(value = "OrderForSearch对象", description = "用于搜索订单信息")
public class OrderForSearch implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("订单id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty("订单的菜品枚举(菜品1,菜品2,...)")
    @TableField("dishes")
    private String dishes;

    @ApiModelProperty("店铺名称")
    @TableField("shop_name")
    private String shopName;
}
